// 路由配置

// 1.常量路由
export const constantRoutes = [

            {
                path: '/',
                name: 'Home',
                component: () => import('@/views/Home/index.vue'),
                meta: {
                    title: '首页',
                    icon: 'HomeFilled' ,
                    hidden: false
                }
            },
            {
                path: '/screen',
                name: 'Screen',
                meta: {
                    title: '数据大屏',
                    icon: 'Platform' ,
                    hidden: false
                },
                redirect: '/data-video',
            },

]

export const asyncRoutes = [
    {
        path: '/permission',
        name: 'Acl',
        meta: {
            title: '权限管理',
            icon: 'Lock',
            hidden: false
        },
        redirect: '/permission/user',
        children: [
            {
                path: '/permission/user',
                name: 'User',
                meta: {
                    title: '用户管理',
                    hidden: false,
                    icon: 'User'
                },
                component: () => import('@/views/Permissions/User.vue'),
            },
            {
                path: '/permission/role',
                name: 'Role',
                meta: {
                    title: '角色管理',
                    hidden: false,
                    icon: 'UserFilled'
                },
                    
                component: () => import('@/views/Permissions/Role.vue'),
            },
            {
                path: '/permission/menu',
                name: 'Permission',
                meta: {
                    title: '菜单管理',
                    hidden: false,
                    icon: 'Menu'
                },
                component: () => import('@/views/Permissions/Menu.vue'),
            },
            
        ]
    },
    {
        path: '/product',
        name: 'Product',
        meta: {
            title: '产品管理',
            icon: 'ShoppingBag'
        },
        redirect: '/brand',
        children: [
            {
                path: '/brand',
                name: 'Trademark',
                meta: {
                    title: '品牌管理',
                    icon: 'ShoppingCartFull' ,
                    hidden: false
                },
                component: () => import('@/views/Product/Brand.vue')
            },
            {
                path: '/attribute',
                name: 'Attr',
                meta: {
                    title: '属性管理',
                    icon: 'ChromeFilled' ,
                    hidden: false
                },
                component: () => import('@/views/Product/Attribute.vue')
            },
            {
                path: '/spu',
                name: 'Spu',
                meta: {
                    title: 'SPU管理',
                    icon: 'Calendar' ,
                    hidden: false
                },
                component: () => import('@/views/Product/Spu.vue')
            },
            {
                path: '/sku',
                name: 'Sku',
                meta: {
                    title: 'SKU管理',
                    icon: 'Help' ,
                    hidden: false
                },

                component: () => import('@/views/Product/Sku.vue')
            },
        ]
    }
]